package com.hnbtr.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hnbtr.dao.ImageDao;
import com.hnbtr.pojo.Image;
import com.hnbtr.service.ImageService;
@Service("imageService")
public class ImageServiceImpl implements ImageService {

	@Autowired
	private ImageDao imageDao;
	
	@Override
	@Transactional(readOnly=false)
	public void add(Image image) {
		imageDao.addImage(image);
	}

	@Override
	@Transactional(readOnly=false)
	public void update(Image image) {
		imageDao.updateImage(image);
	}

}
